package com.lanou.projecta.news.military;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.StackView;

import com.lanou.projecta.R;

/**
 * Created by dllo on 16/1/11.
 */
public class NewsMilitary extends Fragment{
    private StackView stackView;
    private MilitaryAdapter adapter;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_news_military,null);
        stackView = (StackView) view.findViewById(R.id.military_stackView);
        adapter = new MilitaryAdapter(getActivity());
        stackView.setAdapter(adapter);

        return view;
    }
}
